package com.topnav.mc.base.mc;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.js.lib.cache.SysCache;
import com.topnav.mc.admin.security.PermissionGrade;
import com.topnav.mc.common.Constant;
import org.slf4j.MDC;

public class McWrapper<P> extends QueryWrapper<P> {
    public PermissionGrade permissionGrade=null;
    public McWrapper(P entity) {
        super(entity);
        String token = MDC.get(Constant.MDC_TOEKN);
        permissionGrade = (PermissionGrade)SysCache.getInstance().hget(Constant.USER_ORGANIZATION_ROLE,token);
    }
}
